package common.model.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import common.model.po.base.BasePo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author 米泽鹏
 * @since 2024-01-19 下午 05:05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("g_milestone")
@ApiModel(value = "GMilestone对象", description = "")
public class GMilestone extends BasePo<GMilestone> {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "名称")
	private String name;

	@ApiModelProperty(value = "等级")
	@TableField("level")
	private Integer level;

	@ApiModelProperty(value = "时间")
	private BigDecimal duration;

	@ApiModelProperty(value = "前置要求")
	private Long preconditionId;

	@ApiModelProperty(value = "图片")
	private String image;

	@ApiModelProperty(value = "同级排序")
	@TableField("sort")
	private Integer sort;

	@Override
	public Serializable pkVal() {
		return super.getId();
	}

}
